import request from '@/utils/request'

// 查询催缴管理列表
export function listRequirePay(query) {
  return request({
    url: '/payfee/requirePay/list',
    method: 'get',
    params: query
  })
}

// 查询催缴管理详细
export function getRequirePay(id) {
  return request({
    url: '/payfee/requirePay/' + id,
    method: 'get'
  })
}

// 新增催缴管理
export function addRequirePay(data) {
  return request({
    url: '/payfee/requirePay',
    method: 'post',
    data: data
  })
}

// 修改催缴管理
export function updateRequirePay(data) {
  return request({
    url: '/payfee/requirePay',
    method: 'put',
    data: data
  })
}

// 删除催缴管理
export function delRequirePay(id) {
  return request({
    url: '/payfee/requirePay/' + id,
    method: 'delete'
  })
}

// 导出催缴管理
export function exportRequirePay(query) {
  return request({
    url: '/payfee/requirePay/export',
    method: 'get',
    params: query
  })
}

//催缴账单,按照房间汇总
export function requireBillRommCensus(query) {
  return request({
    url: '/payfee/requirePay/requireBillRommCensus',
    method: 'get',
    params: query
  })
}

//查询房屋欠费列表
export function roomArrearageList(query) {
  return request({
    url: '/payfee/requirePay/roomArrearageList',
    method: 'get',
    params: query
  })
}

